<div>
<?php if ($this->identity): ?>

    <?php echo $this->translate('Logged-in as'); ?>
    <?php echo($this->identity->getUser()->first_name); ?>
    <?php echo($this->identity->getUser()->last_name); ?>



    <a href="<?php
        echo $this->url(array('module' => 'default',
                              'controller'=>'user',
                              'action'=>'edit-profile') ,
                        'default', true);
        ?>"><?php echo  $this->translate('Edit profile'); ?></a>
    <a href="<?php
        echo $this->url(array('module' => 'default',
                              'controller'=>'user',
                              'action'=>'change-password') ,
                        'default', true);
        ?>"><?php echo  $this->translate('Change password'); ?></a>
    <a href="<?php
        echo $this->url(array('module' => 'default',
                              'controller'=>'user',
                              'action'=>'change-email') ,
                        'default', true);
        ?>"><?php echo  $this->translate('Change email'); ?></a>
    <a href="<?php
        echo $this->url(array('module' => 'default',
                              'controller'=>'user',
                              'action'=>'logout') ,
                        'default', true);
        ?>"><?php echo  $this->translate('Logout'); ?></a>

<?php else: ?>


    <?php echo  $this->form ?>
    <a href="<?php
        echo $this->url(array('module' => 'default',
                              'controller'=>'user',
                              'action'=>'register') ,
                        'default', true);
        ?>"><?php echo  $this->translate('Create new account'); ?></a>
    <a href="<?php
        echo $this->url(array('module' => 'default',
                              'controller'=>'user',
                              'action'=>'forgot-password') ,
                        'default', true);
        ?>"><?php echo  $this->translate('Forgot password?'); ?></a>



<?php endif; ?>
</div>